//
// Created by yangfei on 2016/10/23.
//

#include <jni.h>
#include <string>

extern "C"
jstring
Java_com_study_yangfei_mystudy_utils_JniTest_foo1(
        JNIEnv *env,
        jobject /* this */) {
    std::string hello = "Hello from C++";
    return env->NewStringUTF(hello.c_str());
}

extern "C"
jint
Java_com_study_yangfei_mystudy_utils_JniTest_foo2(
        JNIEnv *env,
        jobject /* this */,jint a,jstring b) {
    int ia = a+2;
    return ia;
}